<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
    </script>
    <script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script>
</head>
<body>
<a id="zf" href="">微信支付</a>
</body>
<script>
$(function()
{
    $.ajax({
        url:'wangguan/h5zhifu2',
        type:'post',
        contentType:'application/json',
        success(resp){
            if(resp.code==200)
            {
                $("#zf").attr("href",resp.data)
            }
        },
        error(e){

        }
    })

})
</script>
</html>